package com.haiheng.common.bean

import com.google.gson.Gson
import com.haiheng.library_base.http.HttpResponse

/**
 *
 * @Des:
 * @Author: hwz
 * @Date:2022/5/6 0006
 * @Version: 1.0
 */
data class UserReqeBean(
    val result:UserInfoBean? = null
):HttpResponse()

data class UserInfoBean @JvmOverloads constructor(
    var patronSn:String = "",
    var name:String = "",
    var identityId:String = "",
    var password:String = "",
    var sex:String = "",
    var nation:String = "",
    var address:String = "",
    var message:String = "",
    var borrowedItemCount:Int = 0,//已借数量
    var maxBorrowItemCount:Int = 0,//最大可借数量
    var exceedCount:Int = 0,
    var patronStatusType:Int = -1,
    var needReturnDate:String = "",
    var borrowedItemSnList:List<String> = arrayListOf(),
) {

    fun  toJson(): String{
        return Gson().toJson(this)
    }

}